﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="KeDon.aspx.cs" Inherits="QLBV.KeDon" %>
<%@ Register assembly="Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" namespace="Microsoft.Reporting.WebForms" tagprefix="rsweb" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Content" runat="server">
   
        <asp:Label ID="Label1" runat="server" Text="Nhập mã  bệnh nhân" Font-Size="Large" ForeColor="#3333FF"></asp:Label>
        <asp:TextBox ID="txtTk" runat="server" Width="93px"></asp:TextBox>
        <asp:Button ID="btSearch" runat="server" OnClick="btSearch_Click" Text="Tìm kiếm" />
        <asp:Label ID="lbMsg" runat="server" ForeColor="Red"></asp:Label>
        <br />
     <div>
         <table>
             <tr>
                 <td><asp:Label ID="Label3" runat="server" Text="Mã Bệnh nhân"></asp:Label></td>
                 <td><asp:TextBox ID="txtMaBN" runat="server" Enabled="False" Width="25px"></asp:TextBox></td>
                 <td><asp:Label ID="Label4" runat="server" Text="Họ tên"></asp:Label></td>
                 <td> <asp:TextBox ID="txtName" runat="server" Enabled="False"></asp:TextBox></td>
             </tr>
             <tr>
                 <td><asp:Label ID="Label5" runat="server" Text="Giới tính"></asp:Label></td>
                 <td><asp:TextBox ID="txtGender" runat="server" Enabled="False" Width="32px"></asp:TextBox></td>
                 <td> <asp:Label ID="Label6" runat="server" Text="Địa chỉ"></asp:Label></td>
                 <td><asp:TextBox ID="txtAddress" runat="server" Enabled="False"></asp:TextBox></td>
             </tr>
             <tr>
                 <td> <asp:Label ID="Label7" runat="server" Text="Căn bệnh"></asp:Label></td>
                 <td><asp:TextBox ID="txtCanBenh" runat="server" Enabled="False"></asp:TextBox></td>
             </tr>
             <tr>
                 <td> <asp:Label ID="Label15" runat="server" Text="Phone"></asp:Label></td>
                 <td><asp:TextBox ID="txtPhone" runat="server" Enabled="False"></asp:TextBox></td>
             </tr>
        </table>
     </div>
     <div>
        <asp:Label ID="Label8" runat="server" Text="Thông tin thuốc:" Font-Size="Large" ForeColor="#3333FF"></asp:Label>
        <asp:GridView ID="gvThuoc" runat="server" BackColor="White" BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px" CellPadding="3" ForeColor="Black" PageSize="5" Width="100%" AutoGenerateSelectButton="True" OnPageIndexChanging="gvThuoc_PageIndexChanging" OnSelectedIndexChanged="gvThuoc_SelectedIndexChanged" HorizontalAlign="Left" AllowPaging="True" GridLines="Vertical">
            <AlternatingRowStyle BackColor="#CCCCCC" />
            <EditRowStyle HorizontalAlign="Center" />
            <FooterStyle BackColor="#CCCCCC" />
            <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
            <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
            <SortedAscendingCellStyle BackColor="#F1F1F1" />
            <SortedAscendingHeaderStyle BackColor="#808080" />
            <SortedDescendingCellStyle BackColor="#CAC9C9" />
            <SortedDescendingHeaderStyle BackColor="#383838" />
        </asp:GridView>
    </div>
    <div>
        <table>
        <tr>
            <td><asp:Label ID="Label14" runat="server" Font-Size="Large" ForeColor="Blue" Text="Kê đơn"></asp:Label></td>
        </tr>
        <tr>
            <td><asp:Label ID="Label9" runat="server" Text="Mã thuốc:"></asp:Label></td>
            <td><asp:TextBox ID="txtMT" runat="server" Width="31px" Enabled="False"></asp:TextBox></td>
            <td><asp:Label ID="Label10" runat="server" Text="Số lượng:"></asp:Label></td>
            <td><asp:TextBox ID="txtSL" runat="server" Width="48px"></asp:TextBox></td>
            <td>(<asp:Label ID="lbDV1" runat="server"></asp:Label>)</td>
        </tr>
        <tr>
            <td><asp:Label ID="Label11" runat="server" Text="Ngày uống:"></asp:Label></td>
            <td><asp:TextBox ID="txtNU" runat="server" Width="44px"></asp:TextBox>(lần)</td>
            <td> <asp:Label ID="Label12" runat="server" Text="Lần uống:"></asp:Label></td>
            <td><asp:TextBox ID="txtLU" runat="server" Width="45px"></asp:TextBox></td>
            <td> (<asp:Label ID="lbDV2" runat="server"></asp:Label>)</td>
        </tr>
        <tr>
            <td><asp:Label ID="Label13" runat="server" Text="Tên thuốc:"></asp:Label></td>
            <td><asp:TextBox ID="txtTT" runat="server" Enabled="False"></asp:TextBox></td>
        </tr>
        <tr>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td> <asp:Button ID="Button1" runat="server" Height="30px" Text="Thêm vào đơn" OnClick="Button1_Click" /></td>
            <td><asp:Button ID="btUpdate" runat="server" Height="30px" Text="Cập nhật đơn" OnClick="btUpdate_Click" /></td>
            <td><asp:Button ID="btDelete" runat="server" Height="30px" Text="Xóa" OnClick="btDelete_Click" /></td>
        </tr>       
     </table>
    </div>
    <br />
    <div>
        <asp:GridView ID="gvDonThuoc" runat="server" BackColor="White" BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px" CellPadding="3" ForeColor="Black" PageSize="5" Width="100%" HorizontalAlign="Left" AutoGenerateSelectButton="True" OnPageIndexChanging="gvDonThuoc_PageIndexChanging" OnSelectedIndexChanged="gvDonThuoc_SelectedIndexChanged" AllowPaging="True" GridLines="Vertical">
            <AlternatingRowStyle BackColor="#CCCCCC" />
            <EditRowStyle HorizontalAlign="Center" />
            <FooterStyle BackColor="#CCCCCC" />
            <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
            <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
            <SortedAscendingCellStyle BackColor="#F1F1F1" />
            <SortedAscendingHeaderStyle BackColor="#808080" />
            <SortedDescendingCellStyle BackColor="#CAC9C9" />
            <SortedDescendingHeaderStyle BackColor="#383838" />
        </asp:GridView>
   </div>       
    <br />
    <div style="vertical-align:central"><asp:Button ID="Button4" runat="server" Height="40px" Text="In đơn thuốc" OnClick="Print_Click"/></div>    
 
</asp:Content>
